package com.kotasoft.iip.model.insurance;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "I_ASSET")
@SuppressWarnings("serial")
public class BaseAsset implements Serializable {

	@Id
	@Column(name = "ID", length = 36)
	protected String id;

	@Column(name = "CODE", nullable = false)
	private String code;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public BaseAsset withCode(String code) {
		this.code = code;
		return this;
	}
}
